package com.wxl.asmgradleplugin.myplugin

import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.api.artifacts.type.ArtifactTypeDefinition
import org.gradle.kotlin.dsl.dependencies

class MyPlugin4 : Plugin<Project> {
    override fun apply(project: Project) {
        println("---------------MyPlugin4 444------------------")
//        project.dependencies {
//            registerTransform(JarInstrumentTransform::class.java) {
//                from.attribute(
//                    ArtifactTypeDefinition.ARTIFACT_TYPE_ATTRIBUTE,
//                    ArtifactTypeDefinition.JAR_TYPE
//                )
//                to.attribute(
//                    ArtifactTypeDefinition.ARTIFACT_TYPE_ATTRIBUTE, "transformed-jar"
//                )
//            }
//            registerTransform(DirInstrumentTransform::class.java) {
//                from.attribute(
//                    ArtifactTypeDefinition.ARTIFACT_TYPE_ATTRIBUTE,
//                    ArtifactTypeDefinition.DIRECTORY_TYPE
//                )
//                to.attribute(
//                    ArtifactTypeDefinition.ARTIFACT_TYPE_ATTRIBUTE, "transformed-classes"
//                )
//            }
//        }
    }
}